package com.zzs.judge.dao.mysql;

import com.zzs.common.core.entity.mysql.CodeSubmitDO;
import org.apache.ibatis.annotations.Insert;
import org.apache.ibatis.annotations.Mapper;

/**
 * @author zzs
 * @date 2025/03/29
 */
@Mapper
public interface UserSubmitMapper {
    @Insert("insert into code_submit (id, user_id, problem_id, language, code, status, message, input, output, user_output, use_time, use_memory, create_time, update_time) VALUES " +
            "(#{id}, #{userId}, #{problemId}, #{language}, #{code}, #{status}, #{message}, #{input}, #{output}, #{userOutput}, #{useTime}, #{useMemory}, #{createTime}, #{updateTime})")
    void save(CodeSubmitDO codeSubmitDO);
}
